import React from 'react'
import { useNavigate } from 'react-router-dom'
export default function Test1() {
  const navigate = useNavigate()
  return (
    <div>
      <h2>Test1</h2>
      <button
        onClick={() => {
          navigate('/login/1/2')
          // navigate('/login', {
          //   replace: true, //替换历史记录
          // })
        }}
      >
        go-Login
      </button>
    </div>
  )
}
